<?php
class Site_Info extends CI_Model{
    var $table = 'site';
    
    function __construct() {
        parent::__construct();
    }
    
    function getSiteTitle(){
        $query = $this->db->get_where($this->table, array('name' => 'title'), 1, 0);
        $row = $query->row();
        return $row->value;
    }
}
?>
